package com.example.student.service;

import com.example.student.entity.User;
import com.example.student.util.Pager;

import java.util.List;

/**
 * @author TonySong
 * @date 2025/8/7 0007
 * @time 19:25
 */
public interface UserService {

    /**
     * 用户列表
     * @return
     */
    List<User> findAll();

    Pager<User> pageUsers(String currentPage,Integer pagesize);

    boolean delete(int parseInt);

    boolean add(User user);

    User findUserById(int id);

    boolean update(User user);

    User login(User user);

    boolean hasUsername(String username);
}
